using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Xml.Linq;

namespace Triton.Bot.Profiles
{
	public abstract class ProfileGroupElement : ProfileElement
	{
		[CompilerGenerated]
		private List<ProfileElement> list_0;

		public List<ProfileElement> Children
		{
			[CompilerGenerated]
			get
			{
				return list_0;
			}
			[CompilerGenerated]
			private set
			{
				list_0 = value;
			}
		}

		protected ProfileGroupElement()
		{
			Children = new List<ProfileElement>();
		}

		public override void LoadElement(List<ProfileElement> currentList, XElement element)
		{
			base.LoadElement(currentList, element);
			foreach (XElement item in element.Elements())
			{
				Children.Add(ProfileLoader.LoadElement(Children, item));
			}
		}

		public override void Reset()
		{
			foreach (ProfileElement child in Children)
			{
				child.Reset();
			}
		}
	}
}
